Update ty results for v0.0.35#2282
Conversation
There was a problem hiding this comment.
We pass all tests here, so I think "Pass" is accurate. However, I might add a notes field that points out that we currently only do the check for non-generic functions. (You'll need to regen the HTML file afterwards -- our conformance will be displayed as "Pass*" in the rendered HTML, and the notes message will display as a tooltip when folks hover over the cell.)
There was a problem hiding this comment.
I suspect ty isn't alone in that, type checkers are OK with https://github.com/JelleZijlstra/unsoundness/blob/main/examples/overload/generic_overlap.py#L6-L11 after all (we were just talking about that case on pydis).
There was a problem hiding this comment.
Right... ty is the only type checker not to complain about this, for example, though:
from typing import overload
@overload
def mixed_generic[T](x: T) -> T: ...
@overload
def mixed_generic(x: int) -> int: ...
def mixed_generic(x: str) -> object:
return xMultiplay gist: 10c760796b5da6d1614ec8341c0fc3bc
* main: Docs: Fix typo and grammar in type narrowing guide (python#2271) Update ty results for v0.0.35 (python#2282) Add pycroscope to the conformance suite (python#2278) Bump type checkers (python#2279) Update ty results for v0.0.33 (python#2275) conformance: allow consistent treatment of kwargs: Unpack[TD] (python#2272) bump mypy and pyright (python#2274) fix pyright version parsing (python#2273) Allow type checkers to ignore specific error codes (python#2153) Update pyrefly conformance results to v0.62.0 (python#2269) add ty to scripts/bump_type_checkers.py (python#2268)
No description provided.